package org.brisling.satisfaction.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;
import javax.persistence.Transient;

import org.brisling.base.domain.impl.BaseFlowDomain;
import org.brisling.base.domain.inf.BaseFlowDomainInf;
import org.brisling.base.domain.inf.BaseInquiryDomainInf;
import org.brisling.common.ConstSysParam;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 满意度质询实体 entity. 
 * @author jackson Wang
 * @since 2015-12-30 11:38
 * @version 1.0
 */
@Entity
@Table(name=ConstSysParam.MODULE_SATISFACTION_RANK)
public class SatisRank extends BaseFlowDomain implements BaseFlowDomainInf,BaseInquiryDomainInf
{
	
	
	
	/*
	 * 科室编码及名称，应用父类相应字段
	 */
//	private Long deptid;
//	private String deptName;
	
	/*
	 * 医生编码及医生名称，应用父类相应字段
	 */
//	private Long userid;
//	private String userName;
	/*
	 * 异常类型,
	 * 201:基本药物使用(全院比例必须≥30%，各科室单独设定指标)；
	 * 202:药品三双(药占比有明确考核指标，如：全员比例≤35%,各科室单独设定指标
	 * 		子类型：1、西药
	 * 			2、中成药
	 * 			3、中草药
	 * );
	 * 203:抗菌药物使用率,
	 * 204:抗菌药物使用量(抗菌药物的品规数、销售金额以及其和所有药品的品规数 、销售金额的比例
	 * 		子类型：1、品规数
	 * 			2、销售金额占比
	 * ),
	 * 205:抗菌药物使用强度
	 * 206:抗菌药物使用级别
	 * 207:抗菌药物使用品种数	 * 
	 * 
	 * 301:大型设备检查阳性率
	 */
	
	
	/*
	 * 质询事项
	 */
	private String inquiry_item;
	
	
	/*
	 * 质询事项
	 */
	private String inquiry_item_code;
	
	/*
	 * 质询事项
	 */
	private String inquiry_item_sub;
	
	/*
	 * 质询事项
	 */
	private String inquiry_item_subcode;
	/*
	 * 质询原因
	 */
	private String inquiry_reason;
	
	/*
	 * 质询日期
	 */
	@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
	private Date inquiry_date;
	
	/*
	 * 当事人
	 */
	private Long litigant_id;
	
	
	/**
	 * 评价id 查看详情
	 */
	private String evaluate_id;
	
	private String litigant_name;
	
	/*
	 * 当事部门
	 */
	private Long litigant_deptid;
	
	
	private String litigant_deptname;
	/*
	 * 责任人辩解
	 */
	private String litigant_content;
	
	/*
	 * 裁决人
	 */
	private Long decide_id;
	
	private String decide_name;
	
	private String decide_deptid;
	
	private String decide_deptname;
	/*
	 * 裁决人意见
	 */
	private String decide_content;
	/*
	 * 裁决结果
	 */
	private String decide_result;
	
	private String decide_result_code;
	
	/*
	 * 认定人
	 */
	private Long affirm_id;	
	
	private String affirm_name;
	
	private Long affirm_deptid;
	private String affirm_deptname;
	/*
	 * 认定意见
	 */
	private String affirm_content;
	private String affirm_result;
	
	private String affirm_result_code;
	/*
	 * 监控统计值
	 */
	@Transient
	private Integer rank_value;
	
	/*
	 * 标准比对值
	 */
	@Transient
	private Integer metric_value;
	
	/*
	 * 监控周期
	 */
	@Transient
	private Date rank_cycle;

	@Transient
	private String issue;


	
	
	public String getEvaluate_id() {
		return evaluate_id;
	}


	public void setEvaluate_id(String evaluate_id) {
		this.evaluate_id = evaluate_id;
	}


	public Integer getRank_value() {
		return rank_value;
	}


	public void setRank_value(Integer rank_value) {
		this.rank_value = rank_value;
	}


	public Integer getMetric_value() {
		return metric_value;
	}


	public void setMetric_value(Integer metric_value) {
		this.metric_value = metric_value;
	}


	public Date getRank_cycle() {
		return rank_cycle;
	}


	public void setRank_cycle(Date rank_cycle) {
		this.rank_cycle = rank_cycle;
	}


	public String getInquiry_item() {
		return inquiry_item;
	}


	public void setInquiry_item(String inquiry_item) {
		this.inquiry_item = inquiry_item;
	}


	public String getInquiry_item_code() {
		return inquiry_item_code;
	}


	public void setInquiry_item_code(String inquiry_item_code) {
		this.inquiry_item_code = inquiry_item_code;
	}


	public String getInquiry_item_sub() {
		return inquiry_item_sub;
	}


	public void setInquiry_item_sub(String inquiry_item_sub) {
		this.inquiry_item_sub = inquiry_item_sub;
	}


	public String getInquiry_item_subcode() {
		return inquiry_item_subcode;
	}


	public void setInquiry_item_subcode(String inquiry_item_subcode) {
		this.inquiry_item_subcode = inquiry_item_subcode;
	}


	


	public String getInquiry_reason() {
		return inquiry_reason;
	}


	public void setInquiry_reason(String inquiry_reason) {
		this.inquiry_reason = inquiry_reason;
	}


	public Date getInquiry_date() {
		return inquiry_date;
	}


	public void setInquiry_date(Date inquiry_date) {
		this.inquiry_date = inquiry_date;
	}


	public Long getLitigant_id() {
		return litigant_id;
	}


	public void setLitigant_id(Long litigant_id) {
		this.litigant_id = litigant_id;
	}


	public String getLitigant_name() {
		return litigant_name;
	}


	public void setLitigant_name(String litigant_name) {
		this.litigant_name = litigant_name;
	}


	public Long getLitigant_deptid() {
		return litigant_deptid;
	}


	public void setLitigant_deptid(Long litigant_deptid) {
		this.litigant_deptid = litigant_deptid;
	}


	public String getLitigant_deptname() {
		return litigant_deptname;
	}


	public void setLitigant_deptname(String litigant_deptname) {
		this.litigant_deptname = litigant_deptname;
	}


	public String getLitigant_content() {
		return litigant_content;
	}


	public void setLitigant_content(String litigant_content) {
		this.litigant_content = litigant_content;
	}


	public Long getDecide_id() {
		return decide_id;
	}


	public void setDecide_id(Long decide_id) {
		this.decide_id = decide_id;
	}


	public String getDecide_name() {
		return decide_name;
	}


	public void setDecide_name(String decide_name) {
		this.decide_name = decide_name;
	}


	public String getDecide_deptid() {
		return decide_deptid;
	}


	public void setDecide_deptid(String decide_deptid) {
		this.decide_deptid = decide_deptid;
	}


	public String getDecide_deptname() {
		return decide_deptname;
	}


	public void setDecide_deptname(String decide_deptname) {
		this.decide_deptname = decide_deptname;
	}


	public String getDecide_content() {
		return decide_content;
	}


	public void setDecide_content(String decide_content) {
		this.decide_content = decide_content;
	}


	public String getDecide_result() {
		return decide_result;
	}


	public void setDecide_result(String decide_result) {
		this.decide_result = decide_result;
	}


	public String getDecide_result_code() {
		return decide_result_code;
	}


	public void setDecide_result_code(String decide_result_code) {
		this.decide_result_code = decide_result_code;
	}


	public Long getAffirm_id() {
		return affirm_id;
	}


	public void setAffirm_id(Long affirm_id) {
		this.affirm_id = affirm_id;
	}


	public String getAffirm_name() {
		return affirm_name;
	}


	public void setAffirm_name(String affirm_name) {
		this.affirm_name = affirm_name;
	}


	public Long getAffirm_deptid() {
		return affirm_deptid;
	}


	public void setAffirm_deptid(Long affirm_deptid) {
		this.affirm_deptid = affirm_deptid;
	}


	public String getAffirm_deptname() {
		return affirm_deptname;
	}


	public void setAffirm_deptname(String affirm_deptname) {
		this.affirm_deptname = affirm_deptname;
	}


	public String getAffirm_content() {
		return affirm_content;
	}


	public void setAffirm_content(String affirm_content) {
		this.affirm_content = affirm_content;
	}


	public String getAffirm_result() {
		return affirm_result;
	}


	public void setAffirm_result(String affirm_result) {
		this.affirm_result = affirm_result;
	}


	public String getAffirm_result_code() {
		return affirm_result_code;
	}


	public void setAffirm_result_code(String affirm_result_code) {
		this.affirm_result_code = affirm_result_code;
	}


	public String getIssue() {
		return issue;
	}


	public void setIssue(String issue) {
		this.issue = issue;
	}
	
	
}